home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Borland Plateform / TURBO PASCAL 1.5 for WIN / TDWDOC.PAK / UTILS.TDW < prev   
Encoding:
Text File  |  1992-06-08  |  33.1 KB  |  959 lines

  1.                       Turbo Debugger for Windows
  2.                          Utilities Reference
  3.  
  4. This file contains information about the following Turbo Debugger
  5. for Windows utilities:
  6.  
  7. 1. TDSTRIP
  8. 2. TDUMP
  9. 3. TDWINST
  10.  
  11. For convenience, when searching in this file for information about a
  12. particular utility, use the name of the utility followed by a colon
  13. (i.e. TDUMP:). This search takes you directly to the header for the
  14. utility specified.
  15.  
  16. Your TDW package comes with the following utility programs:
  17.  
  18. o TDSTRIP.EXE lets you strip the debugging information (the
  19.   "symbol table") from your programs without relinking.
  20.  
  21. o TDUMP.EXE is a generic object module disassembler program.
  22.  
  23. o TDWINST.EXE is a configuration program that lets you customize TDW.
  24.  
  25.   NOTE: For a list of all the command-line options available for TDUMP
  26.   or TDSTRIP, just type the program name and press Enter. For example,
  27.   to see the command-line options for TDUMP.EXE, you would enter
  28.  
  29.      TDUMP
  30.  
  31.   TDWINST.EXE uses the -? command-line switch for on-line information.
  32.  
  33.  
  34. 1. TDSTRIP: The symbol table stripping utility
  35. ==============================================
  36. TDSTRIP.EXE lets you remove the symbol table from an executable
  37. program generated by TLINK with the /v option. This is a faster
  38. way of removing the symbol table than relinking without the /v
  39. option. It can also remove debugging information from an .OBJ
  40. file. Just enter
  41.  
  42.    TDSTRIP PROGRAM.OBJ
  43.  
  44. You can also use this utility to remove the symbol table and put it in
  45. a separate file. This is useful when you want to convert the .EXE
  46. format program to a .COM file, and still retain the debugging symbol
  47. table. This utility puts the symbol table in a file with the extension
  48. .TDS. Turbo Debugger looks for this file when it loads a program to
  49. debug that does not have a symbol table.
  50.  
  51.  
  52. TDSTRIP command-line options
  53. ----------------------------
  54. Following is the general form of the DOS command line used
  55. to start TDSTRIP:
  56.  
  57.    TDSTRIP [-s][-c] <exename> [<outputname>]
  58.  
  59. If you don't specify the -s option, the symbol table is removed from
  60. the .EXE file <exename>. If you specify an <outputname>, the original .EXE
  61. file is left unchanged and a version with no symbol table is created
  62. as <outputname>.
  63.  
  64. If you do specify the -s option, the symbol table will be put in a
  65. file with the same name as exename but with the extension .TDS. If you
  66. specify an output file, the symbol table will be put in outputname.
  67.  
  68. If you specify the -c option, the input .EXE file is converted into a
  69. .COM file. If you use -c in conjunction with -s, you can convert an
  70. .EXE file with symbols into a .COM file with a separate .TDS symbol
  71. file. This lets you debug .COM files with TDW while retaining full
  72. debugging information.
  73.  
  74. You can only convert certain .EXE files into .COM files. The same
  75. restrictions apply to the -c option of TDSTRIP as to the /t option of
  76. TLINK: Your program must start at location 100 hex, and it can't
  77. contain any segment fix-ups.
  78.  
  79. The default extension for <exename> is .EXE.  If you add an extension,
  80. it overrides the default.
  81.  
  82. There are two default extensions for <outputname>,
  83.  
  84. o .TDS when you use the -s command-line switch
  85. o .EXE when you don't use the -s command-line switch
  86.  
  87. If you add an extension, it overrides the defaults.
  88.  
  89. Following are some sample TDSTRIP command lines:
  90.  
  91.    TDSTRIP MYPROG
  92.  
  93. removes the symbol table from MYPROG.EXE.
  94.  
  95.    TDSTRIP -s MYPROG.OLD
  96.  
  97. removes the symbol table from MYPROG.OLD and places it in MYPROG.TDS.
  98.  
  99.    TDSTRIP MYPROG MYPROG.NEW
  100.  
  101. leaves MYPROG.EXE unchanged but creates another copy of it named
  102. MYPROG.NEW without a symbol table.
  103.  
  104.    TDSTRIP -s MYPROG MYSYMS
  105.  
  106. removes the symbol table from MYPROG.EXE and places it in MYSYMS.TDS
  107.  
  108.  
  109. TDSTRIP error messages
  110. ----------------------
  111. Following is a list of TDSTRIP error messages:
  112.  
  113. Can't create file: ___
  114.   TDSTRIP couldn't create the output symbol or .EXE file. Either there
  115.   is no more room on your disk, or you specified an invalid output file
  116.   name.
  117.  
  118. Can't open file: ___
  119.   TDSTRIP couldn't locate the .EXE file from which you want to remove the
  120.   symbol table.
  121.  
  122. Error reading from input exe file
  123.   An error occurred during reading from the input executable program
  124.   file. Your disk may be unreadable. Try the operation again.
  125.  
  126. Error writing to output file: ___; disk may be full
  127.   TDSTRIP could not write to the output symbol or executable file. This
  128.   usually happens when there is no more room on your disk. You will have
  129.   to delete some files to make room for the file created by TDSTRIP.
  130.  
  131. Input file is not an .exe file
  132.   You've specified an input file name that isn't a valid executable
  133.   program. You can strip symbols only from .EXE programs, since these
  134.   are the only ones that TLINK can put a symbol table on. Programs in
  135.   .COM file format do not have symbol tables and cannot be processed by
  136.   TDSTRIP.
  137.  
  138. Invalid command-line option: ___
  139.   You've given an invalid command-line option when starting TDSTRIP
  140.   from the DOS command line.
  141.  
  142. Invalid exe file format
  143.   The input file appears to be an .EXE format program file, but
  144.   something is wrong with it. You should relink the program with TLINK.
  145.  
  146. Not enough memory
  147.   Your system does not have enough free memory for TDSTRIP to load and
  148.   process the .EXE file. This only happens in extreme circumstances
  149.   (TDSTRIP has very modest memory requirements).  Try rebooting your
  150.   system and running TDSTRIP again.  You might have previously run a
  151.   program that allocated some memory that won't be freed until you reboot.
  152.  
  153. Program does not have a symbol table
  154.   You've specified an input file that is a valid .EXE file, but it
  155.   doesn't have a symbol table.
  156.  
  157. Program does not have a valid symbol table
  158.   The symbol table at the end of the .EXE file is not a valid TLINK
  159.   symbol table. This can happen if you try and use TDSTRIP on a program
  160.   created by a linker other than TLINK. Relink the program with TLINK.
  161.  
  162. Too many arguments
  163.   You can supply a maximum of two arguments to TDSTRIP, the first being
  164.   the name of the executable program, and the second being the name of
  165.   the output file for symbols or the executable program.
  166.  
  167. You must supply an exe file name
  168.   You have started TDSTRIP without giving it the name of an .EXE program
  169.   file whose symbol table you want to strip.
  170.  
  171.  
  172. 2. TDUMP: The file dumping utility
  173. ==================================
  174. The TDUMP utility program produces a file dump that shows the
  175. structure of a file.
  176.  
  177. TDUMP breaks apart a file structurally and uses the file's extension to
  178. determine the output display format. TDUMP recognizes many file formats,
  179. including .EXE, .OBJ, and .LIB files. If TDUMP doesn't recognize an
  180. extension, it produces a hexadecimal dump of the file.  You can control
  181. the output format by using command-line options when you start the
  182. program. (These options are described later).
  183.  
  184. TDUMP's ability to peek at a file's inner structure displays not only
  185. a file's contents, but also how a file is constructed. Moreover,
  186. because TDUMP verifies that a file's structure matches its extension,
  187. you can also use TDUMP to test file integrity.
  188.  
  189.  
  190. TDUMP syntax
  191. ------------
  192. The syntax for TDUMP is
  193.  
  194.    TDUMP [<options>] <Inputfile> [<Listfile>] [<options>]
  195.  
  196. <Inputfile> is the file whose structure you want to display (or "dump").
  197. <Listfile> is an optional output file name (you can also use the standard
  198. DOS redirection command ">"). <options> stands for any of the TDUMP
  199. options discussed in the next section.
  200.  
  201.  
  202. TDUMP command-line options
  203. --------------------------
  204. You can use several optional switches with TDUMP, all of which start
  205. with a hyphen or a forward slash. The following two examples are
  206. equivalent:
  207.  
  208.    TDUMP -el -v demo.exe
  209.  
  210.    TDUMP /el /v demo.exe
  211.  
  212.  
  213. The -a and -a7 options
  214. ----------------------
  215. TDUMP automatically adjusts its output display according to the file
  216. type.  You can force a file to be displayed as ASCII by including
  217. the -a or -a7 option.
  218.  
  219.  
  220. -a  produces an ASCII file display, which shows the offset and the contents
  221.     in displayable ASCII characters. A character that is not displayable
  222.     (like a control character) appears as a period.
  223.  
  224. -a7 converts high-ASCII characters to their low-ASCII equivalents. This
  225.     is useful if the file you are dumping sets high-ASCII characters as
  226.     flags (WordStar files do this).
  227.  
  228.  
  229. The -b# option
  230. --------------
  231. The -b# option allows you to display information beginning at a specified
  232. offset.  For example, if you wanted a dump of MYFILE starting from offset
  233. 100, you would use:
  234.  
  235.    TDUMP -b100 MYFILE
  236.  
  237.  
  238. The -e, -el, -er and -ex options
  239. --------------------------------
  240. All four options force TDUMP to display the file as an executable
  241. (.EXE) file.
  242.  
  243. An .EXE file display consists of information contained within a file
  244. that is used by the operating system when loading a file.  If symbolic
  245. debugging information is present (Turbo Debugger or Microsoft CodeView),
  246. TDUMP displays it.
  247.  
  248. TDUMP displays information for DOS executable files, NEW style executable
  249. files ( Microsoft Windows and OS/2 .EXEs and DLLs ), and Linear Executable
  250. files.
  251.  
  252. -el suppresses line numbers in the display.
  253.  
  254. -er prevents the relocation table from displaying.
  255.  
  256. -ex prevents the display of New style executable information.
  257.     This means TDUMP will only display information for the DOS
  258.     "stub" program.
  259.  
  260.  
  261. The -h option
  262. -------------
  263. The -h option displays the dump file in hexadecimal ( hex ) format.  Hex
  264. format consists of a column of offset numbers, 16 columns of hex numbers,
  265. and their ASCII equivalents (a period appears where no displayable ASCII
  266. character occurs).
  267.  
  268. If TDUMP doesn't recognize the input file's extension, it displays the
  269. file in hex format (unless an option is used to indicate another format).
  270.  
  271.  
  272. The -l option
  273. -------------
  274. The -l option displays the output file in library (.LIB) file format.
  275. A library file is a collection of object files (see the -o option for
  276. more on object files). The library file dump displays library-specific
  277. information, object files, and records in the object file.
  278.  
  279.  
  280. The -m option
  281. -------------
  282. The -m option leaves C++ names occurring in object files, executable
  283. files, and Turbo Debugger symbolic information files "mangled".  This
  284. option is helpful when determining how the C++ compiler "mangles"
  285. a given function name and it's arguments.
  286.  
  287.  
  288. The -o, -oc, -ox, and -oi options
  289. ---------------------------------
  290. -o  displays the file as an object (.OBJ) file. An object file
  291.     display contains descriptions of the command records that pass
  292.     commands and data to the linker, telling it how to create an .EXE
  293.     file.
  294.  
  295.     The display format shows each record and its associated data on a
  296.     record-by-record basis.
  297.  
  298. -oc causes TDUMP to perform a cyclic redundancy test (CRC) on each
  299.     encountered record. The display differs from the -o display only
  300.     if an erroneous CRC check is encountered (the TDUMP CRC value differs
  301.     from the record's CRC byte).
  302.  
  303. -ox<id> excludes designated record types from the object module dump.
  304.         Replace <id> with the record name not to be displayed. For
  305.         instance,
  306.  
  307.            TDUMP -oxPUBDEF MYMODULE.OBJ
  308.  
  309.         produces an object module display for MYMODULE.OBJ that excludes the
  310.         PUBDEF records.
  311.  
  312. -oi<id> includes only specified record types in the object module dump.
  313.         Replace <id> with the name of the record to be displayed.
  314.         For instance,
  315.  
  316.           TDUMP -oiPUBDEF MYMODULE.OBJ
  317.  
  318.         produces an object module display for MYMODULE.OBJ that displays
  319.         only the PUBDEF records.
  320.  
  321. The -ox and -oi options are helpful finding errors that occur during
  322. linking.  For instance, if you receive an "unresolved external" message
  323. from the linker, use "TDUMP -oiEXTDEF" to display the external
  324. definitions occurring in the erring module.  Then, use "TDUMP -oiPUBDEF"
  325. on the module containing the public symbol the linker could not match.
  326. By examining the spelling and case of the EXTDEF symbol and the PUBDEF
  327. symbol, you can resolve many linking problems.
  328.  
  329. Another helpful use for the -oi switch is to check the names and sizes
  330. of the segments generated in a particular module.  For instance,
  331.  
  332.    TDUMP -oiSEGDEF MYMODULE.OBJ
  333.  
  334. displays the names, attributes, and sizes of all of the segments
  335. in MYMODULE.
  336.  
  337.  
  338. The -v option
  339. -------------
  340. The -v option is used for verbose display.  If used with an .OBJ or .LIB
  341. file, TDUMP produces a hexadecimal dump of the record's contents without
  342. any comments about the records.
  343.  
  344. If you use TDUMP on a Turbo Debugger symbol table, it displays the
  345. information tables in the order in which it encounters them.  TDUMP
  346. doesn't combine information from several tables to give a more meaningful
  347. display on a per-module basis.
  348.  
  349.  
  350. 3. TDWINST: the TDW configuration program
  351. =========================================
  352. This description consists of the following sections:
  353.  
  354. 3.1 Introduction
  355. 3.2 Running TDWINST
  356. 3.3 Setting the screen colors
  357. 3.4 Setting TDW display parameters
  358. 3.5 TDW options
  359. 3.6 Setting the mode for display
  360. 3.7 Command-line options and installation equivalents
  361. 3.8 When you're through
  362.  
  363.  
  364. 3.1 Introduction
  365. ----------------
  366. TDW is ready to run as soon as you install it. However, you can change
  367. many of the default settings by running the customization program called
  368. TDWINST. You also can change some of the options using command-line
  369. options when you start TDW. If you find yourself frequently
  370. specifying the same command-line options, you can make those options
  371. permanent by running the customization program.
  372.  
  373. The customization program enables you to set the following items:
  374.  
  375. o window, dialog box, screen, and menu colors
  376.  
  377. o display options: display swapping, integer format, beginning
  378.   display (source or assembler code), screen lines, tab size,
  379.   maximum tiled Watches size, fast screen update, 43/50-line mode,
  380.   user screen updating, log list length, floating precision, and range
  381.   inspect.
  382.  
  383. o directories to search for source files and the TDW help and
  384.   configuration files
  385.  
  386. o user input and prompting parameters: history list length, beep on
  387.   error, full trace history, mouse enable, and control-key shortcuts
  388.  
  389. o Source debugging language options
  390.  
  391. o Display mode
  392.  
  393.  
  394. 3.2 Running TDWINST
  395. -------------------
  396.  _______________________
  397. | Colors                |
  398. | Display...            |
  399. | Options               |
  400. | Mode for display      |
  401. | Save                  |
  402. | Quit                  |
  403. |_______________________|
  404.  
  405. To run the customization program, enter TDWINST at the DOS prompt
  406. or run it using the Windows Program Manager File|Run command. As
  407. soon as TDWINST comes up, it displays its main menu. You can either
  408. press the highlighted first letter of a menu option or use the
  409. arrow keys to move to the item you want and then press Enter. For
  410. instance, press D to change the display settings. Use this same
  411. technique for choosing from the other menus in the installation
  412. utility. To return to a previous menu, press Esc. You may have to
  413. press Esc several times to get back to the main menu.
  414.  
  415.  
  416. 3.3 Setting the screen colors
  417. -----------------------------
  418. Choose Colors from the main menu to bring up the Colors menu. It
  419. offers you two choices: Customize and Default Color Set.
  420.  
  421.  
  422. Customizing screen colors
  423. =========================
  424.  
  425. If you choose Customize, a third menu appears, with options for
  426. customizing windows, dialog boxes, menus, and screens.
  427.  
  428.  
  429. Windows
  430. _______
  431.  
  432. To customize windows, choose the Windows command. This opens a
  433. fourth menu, from which you can choose the kind of window you want
  434. to customize: Text, Data, Low Level (for example, the CPU window),
  435. and Other (for example, the Breakpoints window). Choosing one of
  436. these options brings up yet another menu listing the window
  437. elements, together with a pair of sample windows (one active, one
  438. inactive) in which you can test various color combinations.
  439.  
  440. When you select an item you want to change, a palette box pops up
  441. over the menu. Use the arrow keys to move around in the palette
  442. box. As you move the selection box through the various color
  443. choices, the window element whose color you are changing is updated
  444. to show the current selection. When you find the color you like,
  445. press Enter to accept it.
  446.  
  447. TDW maintains three color tables: one for color, one for black and
  448. white, and one for monochrome. You can only change one set of
  449. colors at a time, based on your current video mode and display
  450. hardware. So, if you are running on a color display and want to
  451. adjust a black-and-white table, first set your video mode to
  452. black and white by typing MODE BW80 at the DOS prompt, and then run
  453. TDWINST.  To reset your terminal to a color display type MODE CO80.
  454.  
  455.  
  456. Dialog boxes
  457. ____________
  458.  
  459. If you want to edit dialog box colors, choose Dialogs from the
  460. Customize menu.  A menu appears listing dialog box and menu
  461. elements, with a sample dialog box for you to experiment with.
  462.  
  463. As with the Windows menu, choosing an item from the current menu
  464. opens a palette from which you can choose the color for that item.
  465.  
  466.  
  467. Menus
  468. ______
  469.  ________________________
  470. | Menu background        |
  471. | Standard item          |
  472. | Active item background |
  473. | Active item foreground |
  474. | Hot letter             |
  475. |________________________|
  476. | Status foreground      |
  477. | Status background      |
  478. |________________________|
  479.  
  480. If you choose Menus from the Customize menu, a menu of menu options
  481. opens, along with a sample menu. Choosing an item from the menu
  482. causes the usual palette to appear.
  483.  
  484.  
  485.  
  486. Screen
  487. ______
  488.  
  489.  ________________________
  490. | Pattern for background |
  491. |________________________|
  492. | Pattern background     |
  493. | Pattern foreground     |
  494. | Window move            |
  495. |________________________|
  496.  
  497. Choosing Screen from the Customize menu opens a menu from which you
  498. can access another menu with screen patterns and palettes for
  499. screen elements, as well as a sample screen background on which to
  500. test them.
  501.  
  502.  
  503. The default colors
  504. ==================
  505.  
  506. If you choose Default Color Set from the Colors menu, an active
  507. text window (Text Window) and an inactive window (Another Window)
  508. appear onscreen, so you can see what the default colors for their
  509. elements are.  The Accept color set window also appears.  From this
  510. window you can choose to view the default colors for Text, Data,
  511. Low level or Other displays.
  512.  
  513.  
  514.  
  515. 3.4 Setting TDW display parameters
  516. ----------------------------------
  517. Choose Display from the main menu to bring up the Display Options
  518. dialog box.
  519.  
  520. The move between options use the TAB key.  To toggle the radio
  521. buttons use the arrow keys and to select a check box use the
  522. spacebar.
  523.  
  524. Some of the display options can be set from the command line when
  525. you start TDW. See the Command-line options section later in this
  526. chapter for a table of TDW command-line options and corresponding
  527. TDWINST settings.
  528.  
  529.  
  530. Display Swapping
  531. ================
  532.  
  533. You use the Display Swapping radio buttons to control how TDW
  534. switches between its own display and the output of the program
  535. you're debugging. Using the arrow keys, you can toggle between the
  536. following settings:
  537.  
  538. Smart     Swap to the User screen only when display output might
  539.           occur. TDW swaps the screens any time that you step over a
  540.           routine, or if you execute any instruction or source line
  541.           that appears to read or write video memory. This is the
  542.           default option.
  543.  
  544. Always    Swap to the User screen every time the user program runs.
  545.           Use this option if the Smart option is not catching all the
  546.           occurrences of your program writing to screen. If you choose
  547.           this option, the screen flickers every time you step through
  548.           your program, since TDW's screen is replaced for a short
  549.           time with the User screen.
  550.  
  551.  
  552. Integer Format
  553. ==============
  554.  
  555. The Integer Format radio buttons let you set how integers are
  556. displayed. You can toggle between the following options:
  557.  
  558. Hex        Chooses hexadecimal number display.
  559.  
  560. Decimal    Chooses decimal number display.
  561.  
  562. Both       Displays both hexadecimal and decimal.
  563.  
  564.  
  565. Beginning Display
  566. =================
  567.  
  568. The Beginning Display radio buttons determines the language in
  569. which your program is displayed when TDW starts. They have the
  570. following settings:
  571.  
  572. Source     Source startup: Your program's startup code runs, and you
  573.            start in a Module window, where your source code begins.
  574.  
  575.  
  576. Assembler
  577.            Assembler startup: None of your program is executed, and a
  578.            CPU window shows the first instruction of your program's
  579.            startup code.
  580.  
  581.  
  582.  
  583. Screen Lines
  584. ============
  585.  
  586. Use these radio buttons to toggle whether TDW should start up with
  587. a display screen of 25 lines or a display screen of 43 or 50 lines.
  588.  
  589. Only the EGA and VGA can display more than 25 lines.
  590.  
  591.  
  592. Tab Size
  593. ========
  594.  
  595. In this input box, you can set the number of columns between tab
  596. stops in a text or source file display. You are prompted for the
  597. number of columns (a number from 1 to 32); the default is 8.
  598.  
  599.  
  600. Maximum Tiled Watch
  601. ===================
  602.  
  603. This input box sets the number of lines that the Watches window can
  604. expand to when it's in Tiled mode. You are prompted for the number
  605. of lines (1 to 20).
  606.  
  607.  
  608. Fast Screen Update
  609. ==================
  610.  
  611. The Fast Screen Update check box lets you toggle whether your
  612. displays will be updated quickly. You can choose this option by
  613. pressing the spacebar while Fast Screen Update is highlighted.
  614. Toggle this option off if you get "snow" on your display with fast
  615. updating enabled. You need to disable this option only if the "snow"
  616. annoys you. (Some people prefer the snowy screen because it gets
  617. updated more quickly.)
  618.  
  619.  
  620. Permit 43/50 Lines
  621. ==================
  622.  
  623. Turning this check box on allows big (43/50-line) display modes. By
  624. default this option is on.  However, if you turn it off by pressing
  625. the spacebar, you save approximately 8K, since the large screen
  626. modes need more window buffer space in TDW. This option might be
  627. helpful if you are debugging a very large program that needs as
  628. much memory as possible to execute in. When the option is disabled,
  629. you won't be able to switch the display into 43/50-line mode even
  630. if your system is capable of handling it.
  631.  
  632.  
  633. International Sort
  634. ==================
  635.  
  636. If this check box is selected, all items in list boxes are sorted
  637. according to the COUNTRY setting in your CONFIG.SYS.(in DOS) or the
  638. language indicated in the Windows Control Panel's International
  639. dialog box (in Windows).  For more information about setting the
  640. current country or language, refer to your DOS or Windows Users Guide.
  641.  
  642. If International Sort is not selected, list box entries are sorted
  643. according to the ASCII values (in DOS) or the ANSI values (in Windows)
  644. of the items in the box.
  645.  
  646.  
  647. User Screen Updating
  648. ====================
  649.  
  650. The User Screen Updating radio buttons set how the User screen is
  651. updated when TDW switches between its screen and your program's
  652. User screen. There are two settings:
  653.  
  654. Other Display    Runs TDW on the other display in your system. If
  655.                  you have both a color and monochrome display
  656.                  adapter, this option lets you view your program's
  657.                  screen on one display and TDW's on the other.
  658.  
  659. Swap             Uses a single display adapter and display page,
  660.                  and swaps the contents of the User and TDW screens
  661.                  in software. This method, the default for updating
  662.                  user screens, is the slowest method of display
  663.                  swapping, but is the most protective and least
  664.                  disruptive. If you are debugging a program that
  665.                  uses multiple display pages, like a graphics
  666.                  program, use this option.
  667.  
  668.  
  669. Log List Length
  670. ===============
  671.  
  672. Use this input box to set how many entries are saved in the log
  673. file. The maximum number is 200; the minimum is 4.
  674.  
  675.  
  676. Floating Precision
  677. ==================
  678.  
  679. Use this input box to set the precision (the number of digits after
  680. the decimal point) of any floating point data TDW inspects. This
  681. number can range from 1 to 32.
  682.  
  683.  
  684. Range Inspect
  685. =============
  686.  
  687. Use this input box to set the number of elements TDW normally
  688. displays for a pointer after you choose the local menu Range
  689. command in an Inspector window. The default value is five, which
  690. means that TDW displays only the first five elements pointed to
  691. unless you indicate a different range by using the local menu Range
  692. command. The maximum value you can enter for the range is 4096.
  693.  
  694.  
  695. If any of the input boxes on the Display Options dialog box are empty
  696. when you try to exit, you will be prompted to enter a value before you
  697. may exit.
  698.  
  699.  
  700. 3.5 TDW options
  701. ---------------
  702.  ______________________
  703. |Directories...        |
  704. |Input & prompting...  |
  705. |Source debugging...   |
  706. |______________________|
  707.  
  708. The Options command in the main menu opens a menu of options, which
  709. in turn open dialog boxes for you.
  710.  
  711.  
  712.  
  713. Directories
  714. ===========
  715.  
  716. This dialog box contains input boxes in which you can enter:
  717.  
  718. Source directories     Sets the list of directories TDW searches for
  719.                        source files.
  720.  
  721. Turbo directory        Sets the directory that TDW will look in for
  722.                        its help and configuration files.
  723.  
  724.  
  725. Input and Prompting
  726. ===================
  727.  
  728. This dialog box lets you set options that control how you input
  729. information to TDW, and how TDW prompts you for information. It
  730. also lets you decide if TDW is to keep a full history of your
  731. debugging session.
  732.  
  733.  
  734. History List Length
  735. ___________________
  736.  
  737. This input box lets you specify how many previous entries are to be
  738. saved in a history list input box.  The default is 10.
  739.  
  740.  
  741. Beep on Error
  742. _____________
  743.  
  744. By default, TDW doesn't give a warning beep when you press an
  745. invalid key or do something that generates an error message. The
  746. Beep on Error check box lets you change this default.
  747.  
  748.  
  749. Control Key Shortcuts
  750. _____________________
  751.  
  752. This check box enables or disables the control-key shortcuts. When
  753. control-key shortcuts are enabled, you can invoke any local menu
  754. command directly by pressing the Ctrl key in combination with the
  755. first letter of the menu item. However, in that case, you can't use
  756. those control keys as WordStar-style cursor-movement commands.
  757.  
  758.  
  759. Mouse Enabled
  760. _____________
  761.  
  762. This check box controls whether TDW supports a mouse.
  763.  
  764.  
  765. Full trace history
  766. __________________
  767.  
  768. Pick this option if you want TDW to keep a full history list of your
  769. debugging session. A history list lets you backtrace through your
  770. source code, but also slows down execution of your code.
  771.  
  772.  
  773. Source Debugging
  774. ================
  775.  
  776. The Source Debugging dialog box lets you specify what language TDW
  777. will use for evaluating expressions, enables and disables symbol
  778. case sensitivity, and controls special support for Windows message
  779. debugging in ObjectWindows programs.
  780.  
  781.  
  782. Language
  783. ________
  784.  
  785. The Language radio buttons toggle the language TDW uses for
  786. evaluating expressions:
  787.  
  788. Source Module     Choose what language to use based on the languages
  789.                   of the current source module.  This is the default.
  790.  
  791. C                 Always use C expressions, no matter what language the
  792.                   current module was written in.
  793.  
  794. Pascal            Always use Pascal expressions, no matter what language
  795.                   the current module was written in.
  796.  
  797. Assembler         Always use assembler expressions, no matter what
  798.                   language the current module was written in.
  799.  
  800.  
  801. Ignore Symbol Case
  802. __________________
  803.  
  804. If this check box is on, TDW treats uppercase and lowercase the same.
  805. If it is off, case sensitivity is in effect.
  806.  
  807.  
  808. OWL window messages
  809. ___________________
  810.  
  811. If this option isn't checked (the default), there's no special support
  812. for Windows message debugging in ObjectWindows programs, and TDW won't
  813. recognize any of the window objects in your program as Windows procedures.
  814. Instead, you're required to use window handles when setting Windows message
  815. breakpoints (and to know enough about ObjectWindows to be able to locate
  816. a handle).
  817.  
  818. If this check box is on, TDW provides special support for Windows message
  819. breakpoints in ObjectWindows programs. This support allows you to use the
  820. name of a window object from your program when setting Windows message
  821. breakpoints. However, debugging with Windows message breakpoints set is
  822. likely to be slower than when the option is off.
  823.  
  824.  
  825. 3.6 Setting the mode for display
  826. --------------------------------
  827.  ___________________
  828. | Default           |
  829. | Color             |
  830. | Black and white   |
  831. | Monochrome        |
  832. | LCD               |
  833. |___________________|
  834.  
  835. Choosing Mode for Display from the main menu enables you to select
  836. the display mode for your system.
  837.  
  838.  
  839. Default            TDW detects the kind of graphics adapter on your
  840.                    system and selects the display mode appropriate for
  841.                    it.
  842.  
  843.  
  844. Color              If you have an EGA or VGA graphics adapter and choose
  845.                    this option as your default, the display will be in
  846.                    color.
  847.  
  848. Black and White    If you have an EGA or VGA graphics adapter and
  849.                    choose this option, the display will be in black
  850.                    and white.
  851.  
  852. Monochrome         Choose this option if you are using a color monitor
  853.                    with a Hercules  adapter.
  854.  
  855. LCD                Choose this option if you have an LCD monitor.
  856.  
  857.  
  858. 3.7 Command-line options and installation equivalents
  859. -----------------------------------------------------
  860. Some of the options described in the previous section can be over-
  861. ridden when you start TDW. The following table shows the
  862. correspondence between TDW command-line options and the TDWINST
  863. program command that permanently sets that option.
  864.  
  865. TDW command-line options
  866. _____________________________________________________________________
  867. Option          TDWINST menu path               Dialog box and option
  868. _____________________________________________________________________
  869.  
  870.  
  871.                 Display                         Display Options
  872.   -do                                             (X) Other
  873.   -ds                                             (X) Swap
  874.  
  875.                 Display                         Display Options
  876.   -l                                              (X) Assembler
  877.   -l-                                             (X) Source
  878.  
  879.                 Options|Input and Prompting     User Input and Prompting
  880.   -p                                              [X] Mouse Enabled
  881.   -p-                                             [ ] Mouse Enabled
  882.  
  883.                 Options|Directories             Directories
  884.   -sd                                             Source Directories
  885.   -t                                              Turbo Directory
  886. ______________________________________________________________________
  887.  
  888. For example, when starting TDW from the DOS prompt you can type:
  889.  
  890.    win tdw -p
  891.  
  892. This command loads Windows and enables use of the mouse in TDW.
  893. Remember, you must type "win" when starting TDW from the DOS prompt
  894. because TDW requires Microsoft Windows in order to run.  Note that
  895. TDW.EXE must be in a directory in your DOS path in order for this
  896. command to work.
  897.  
  898. For a list of all the command-line options available for TDW.EXE or
  899. TDWINST.EXE, enter the program name followed by -h or -?:
  900.  
  901.  
  902. 3.8 When you're through
  903. -----------------------
  904. Saving changes
  905. ==============
  906.  ____________________________
  907. | Save configuration file... |
  908. | Modify tdw.exe             |
  909. |____________________________|
  910.  
  911. When you have set the TDW options to the way you want, choose
  912. Save from the main menu to display saving options.
  913.  
  914.  
  915. Save Configuration File
  916. _______________________
  917.  
  918. If you choose Save Configuration File, a dialog box opens, initialized
  919. to the default configuration file TDCONFIG.TDW. You can accept this
  920. name by pressing Enter, or you can type a new configuration file name.
  921. If you specify a different file name, you must load that configuration
  922. using the -c command-line option when you start TDW.
  923.  
  924. For example, to start TDW using the configuration file MYCFG.TDW, you
  925. have several options.  If Windows is already loaded, type the following
  926. from the Windows Program Manager's File|Run command line:
  927.  
  928.    tdw -cmycfg.tdw myprog
  929.  
  930. If you are starting TDW directly from the DOS command line and want to
  931. use the configuration MYCFG.TDW, Windows must be loaded concurrently by
  932. typing:
  933.  
  934.    win tdw -cmycfg.tdw myprog
  935.  
  936. You can also use the TDW Options|Restore Options command to load a
  937. configuration once you have started TDW.
  938.  
  939.  
  940. Modify TDW.EXE
  941. ______________
  942.  
  943. If you choose Modify TDW.EXE, any changes that you have made to the
  944. configuration are saved directly into the TDW executable program
  945. file TDW.EXE. The next time you run TDW, those settings will be
  946. your defaults.
  947.  
  948. If at any time, you want to return to the default configuration
  949. that TDW is shipped with, copy TDW.EXE from your master disk onto
  950. your working system disk, overwriting the TDW.EXE file that you
  951. modified.
  952.  
  953.  
  954. Exiting TDWINST
  955. ===============
  956.  
  957. To get out of TDWINST at any time, choose Quit from the main menu.
  958.  
  959.